#ifndef WAREHOUSE_H
#define WAREHOUSE_H
#include <set>
#include <ctime>
#include <utility>
#include <string>
#include "product.h"


namespace a4
{

  class warehouse
  {
  public:
    std::string name;
    warehouse(std::string n);
    void receive_item(int upc, int quantity);
    void satisfy_request(int upc, int quantity); 
    std::pair<tm, int> get_busiest_day();
    
  private:
    std::set<product> *inventory;
    std::pair<std::tm, int> calc_busiest_day();
    std::pair<std::tm, int> busiest_day;
    void remove_expired();
  };
}
#endif
